package com.itheima.Demo01.demo02;

import java.io.*;

public class Test01 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("D:\\soft\\day0610-code\\day0628-code\\src\\com\\itheima\\Demo01\\demo02\\name.java"));
        BufferedWriter bw = new BufferedWriter(new FileWriter("D:\\soft\\day0610-code\\day0628-code\\src\\com\\itheima\\Demo01\\demo02\\QQ.txt"));

        int a;
        char[] c = new char[1024];

        while ((a = br.read(c)) != -1) {
            bw.write(c);
        }

        br.close();
        bw.close();


    }
}
